package cn.tedu.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "OK"),
    LOGIN_SUCCESS(2001, "登录成功"),
    OPERATION_SUCCESS(2002, "操作成功"),
    OUTLOGIN_SUCCESS(2003, "退出成功"),
    REGISTER_SUCCESS(2004,"注册成功"),
    LOGIN_CONTINUE(2005,"已有设备登录，是否继续登录"),


    NOT_LOGIN(4000, "未登录"),
    USERNAME_PASSWORD_ERROR(4002, "手机号或密码错误"),
    USER_NOT_EXIST(4003,"用户不存在"),
    INSUFFICIENT_FUNDS(4004, "余额不足"),
    LOGIN_EXISTS(4005,"已登录，请勿重复登录"),

    OPERATION_FAILED(5001, "操作失败"),
    VALIDATE_ERROR(5002, "请求参数错误"),
    PHONENUM_ALREADY_EXISTS(5003, "当前手机号已注册"),
    DATA_UNEXISTS(5004, "请求数据不存在"),
    CODE_ERROR(5005,"验证码错误");

    //状态码、状态码描述
    private Integer code;
    private String msg;
}
